//
//  SYProfileTableViewController.swift
//  仿微博
//
//  Created by a。 on 16/9/19.
//  Copyright © 2016年 a。. All rights reserved.
//

import UIKit

class SYProfileTableViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Uncomment the following line to preserve selection between presentations
        // self.clearsSelectionOnViewWillAppear = false

        // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
//        setNavUI()
        navigationItem.rightBarButtonItem = UIBarButtonItem(title:"push" ,target: self, action: #selector(pushAction))

    }
    
    func setNavUI() {
//        
//        let btn = UIButton()
//        
//        
//        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "登录")
//        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "注册")
//        
        
        
    }
   @objc func pushAction() -> Void {
        
        let testVC = SYTestViewController()
        
        navigationController?.pushViewController(testVC, animated: true)
        
        
        
    }
}
